Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bulk-write-stream

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bulk-write-stream

Writable stream that forwards everything in the highWaterMark buffer to a custom write function using the new writev api in streams

  • 1.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3.7K
decreased by-59.62%
Maintainers
1
Weekly downloads
 
Created
Source

bulk-write-stream

Writable stream that forwards everything in the highWaterMark buffer to a custom write function using the new writev api in streams

npm install bulk-write-stream

build status

Usage

var bulk = require('bulk-write-stream')

var ws = bulk.obj(function (list, cb) {
  console.log('should write list of objects', list)
  cb()
})

ws.write('a')
ws.write('b')
ws.write('c')
ws.write('d')

API

var ws = bulk([options], write, [flush])

Create a new binary bulk write stream. Options are forwarded to the writable stream constructor. Write is called with write(list, cb) where list is everything currently buffered in the writable stream.

If you specify a flush function that will be called with flush(cb) before the stream emits finish.

var ws = bulk.obj([options], write, [flush])

A shorthand for setting objectMode: true

License

MIT

FAQs

Package last updated on 23 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc